import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import HeroTable from '@/components/HeroTable'
import HeroUpdate from '@/components/HeroUpdate'
import HeroAdd from '@/components/HeroAdd'
import TestArea from '@/components/TestArea'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/showHero',
      name: 'heroTable',
      component: HeroTable
    },
    {
      path: '/update',
      name: 'UpdateForm',
      component: HeroUpdate
    },
    {
      path: '/add',
      name: 'AddForm',
      component: HeroAdd
    },
    {
      path: '/TestArea',
      name: 'TestArea',
      component: TestArea
    }
  ]
})
